//引入mockjs

const Mock = require('mockjs')

let id = Mock.mock('@id')

var obj = Mock.mock({
    id: '@id()',//得到随机id
    username: "@cname()",//生成随机中文名
    date: "@date()",//生成随机日期
    avatar: "@image('200x200','red','#fff','avatar')",//生成随机图片,参数:size,bgd,foreground,text
    description: "@paragraph()",//描述
    ip: "@ip()",//ip地址
    email: "@email()"//email
})
console.log(obj)
